//deprecated ;)
imported = new Array();
function isImported(string) {
	for (i in imported) {
		if (imported[i]===string) {
			return true;
		}
	}
	return false;
}
	
function import(string) {
	if (!isImported(string)) {
		var head = document.getElementsByTagName('head')[0];
		var script= document.createElement('script');
		script.type = 'text/javascript';
		script.src = string;
		imported.push(string);
		head.insertBefore(script,head.firstChild);
	}
}

function import2(string) {
	if (!isImported(string)) {
		var imp = document.getElementById('importScript');
	}
}